import http from '../config/httpconfig'

/**
 * 根据Code获取用户信息 
 */
export const qeuryUserInfoByCode = params => http.post('/login/wxLogin', params);

/**
 * 获取轮播图信息
 */
export const listMobileSlideshow = params => http.get('/slideshow/listMobileSlideshow', params);

/**
 * 获取模块信息
 */
export const listMobileModule = params => http.get('/module/listMobileModule', params);

/**
 * 获取新闻信息
 */
export const listNews = params => http.get('/website/listNews', params)

/**
 * 根据新闻信息id查询信息详情
 */
export const getNews = params => http.get('/website/getNews', params)

/**
 * 查询消息通知
 */
export const listMessageNotice = params => http.get('/message/listMessageNotice', params)

/**
 * 更改消息状态
 */
export const messageRead = params => http.post('/message/messageRead', params)

/**
 * 查询消息通知详情
 */
export const getMessageById = params => http.get('/message/getMessageById', params)

/**
 * 获取登录用户信息
 */
 export const getLoginUser = params => http.get('/user/getLoginUser', params)

 /**
  * 查询活动报名次数
  */
 export const getUserActivityApplyCount = params => http.get('/activityapplyrecord/getUserActivityApplyCount', params)

 /**
  * 查询微课上传次数
  */
 export const getUserMicroLessonCount = params => http.get('/microlessoninfo/getUserMicroLessonCount', params)

 /**
  * 查询场地预约次数
  */
 export const getUserSubscribeCount = params => http.get('/room/getUserSubscribeCount', params)